import request from '@/utils/request'
// gasManage:stockManage:goodCategory:list
export function searchCategoryApi(query) {
    return request({
        url: '/stock/goodsCategory/list',
        method: 'get',
        params: query
    })
}
//gasManage:stockManage:goodCategory:add
export function addCategoryApi(data) {
    return request({
        url: '/stock/goodsCategory',
        method: 'post',
        data: data
    })
}
//gasManage:stockManage:goodCategory:list
export function searchCategoryByIdApi(id) {
    return request({
        url: '/stock/goodsCategory/'+id,
        method: 'get',
    })
}
// gasManage:stockManage:goodCategory:edit
export function editCategoryApi(data) {
    return request({
        url: '/stock/goodsCategory',
        method: 'put',
        data: data
    })
}
// gasManage:stockManage:goodCategory:delete
export function deleteCategoryApi(id) {
    return request({
        url: '/stock/goodsCategory/delete/'+id,
        method: 'delete'
    })
}